<!DOCTYPE html>
<html>

<head>
	<title>7 Paradigms Template</title>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
	<link href="css/bootstrap.css" rel="stylesheet">
</head>

<body>
	<div>
		<?php
		session_start();
		include("header.php");
		$_SESSION['userName'] = "aMarciniak";
		$_SESSION['userPassHash'] = "aMarciniak";
		$userName = $_SESSION['userName'];
		$userPassHash = $_SESSION['userPassHash'];
		?>
	</div>
	<div>
		<?php

		include_once "paradigmShift.php";

		$mainPanel;
		if (isset ($_GET['mainPanel']))
		{
			$mainPanel = $_GET['mainPanel'];
			$_SESSION['mainPanel'] = $mainPanel;
		}
		elseif (isset ($_SESSION['mainPanel']))
		{
			$mainPanel = $_SESSION['mainPanel'];
		}
		else
		{
			$mainPanel = "upcoming";
		}

		switch ($mainPanel){
			case "Upcoming Shifts":
				include_once "upcoming.php";
				break;
			case "History":
				include_once "history.php";
				break;
			case "Profile":
				include_once "profile.php";
				break;
			case "Shift Shop":
				include_once "shop.php";
				break;
			case "Employee Manager":
				include_once "empManager.php";
				break;
			case "Add New Shift":
				include_once "addNewShift.php";
				break;
			case "Shift Manager":
				include_once "shiftManager.php";
				break;
			case "Add New Account":
				include_once "employeeAdd.php";
				break;
			case "View Upcoming Per Worker":
				include_once "upcomingPerWorker.php";
				break;
			default:
				include_once "upcoming.php";
				break;
		}
		?>
	</div>
	<div>
		<?php include("footer.php"); ?>
	</div>
</body>

</html>
